<include file="public/layout" />

<script src="__ROOT__/public/static/js/layer/laydate/laydate.js"></script>

<body style="background-color: rgb(255, 255, 255); overflow: auto; cursor: default; -moz-user-select: inherit;">

<div id="append_parent"></div>

<div id="ajaxwaitid"></div>

<div class="page">

	<div class="fixed-bar">

		<div class="item-title">

			<div class="subject">

				<h3>对账单</h3>

				<h5>网站系统对账单</h5>

			</div>

		</div>

	</div>

	<!-- 操作说明 -->

	<div class="explanation">

		<div id="checkZoom" class="title"><i class="fa fa-lightbulb-o"></i>

			<h4 title="提示相关设置操作时应注意的要点">操作提示</h4>

			<span title="收起提示" id="explanationZoom" style="display: block;"></span>

		</div>
		<ul>
			<li>微信在次日9点启动生成前一天的对账单，建议商户10点后再获取；</li>
			<li>对账单中涉及金额的字段单位为“元”。</li>
			<li>对账单接口只能下载三个月以内的账单。</li>
		</ul>

	</div>

	<div class="flexigrid">

		<div class="mDiv">

			<div class="ftitle">

				<h3>对账单统计</h3>

			</div>

			<div title="刷新数据" class="pReload"><i class="fa fa-refresh"></i></div>

			<form class="navbar-form form-inline" method="post" action="{:U('Report/bill')}">

				<div class="sDiv">

					<div class="sDiv2" style="margin-right: 10px;">

						<input type="text" size="30" id="start_time" name="time" value="{$time}" placeholder="查询日期" class="qsbox">

						<input type="button" class="btn" value="日期">

					</div>

					<div class="sDiv2">

						<input class="btn" value="搜索" type="submit">

					</div>

				</div>

			</form>

		</div>

		<div class="hDiv">

			<div class="hDivBox">

				<table cellspacing="0" cellpadding="0">

					<thead>

					<tr>

						<th class="sign" axis="col0">

							<div style="width: 24px;"><i class="ico-check"></i></div>

						</th>

						<th align="center" abbr="article_title" axis="col3" class="">

							<div style="text-align: center; width: 120px;" class="">交易时间</div>

						</th>

						<!--<th align="center" abbr="ac_id" axis="col4" class="">-->

							<!--<div style="text-align: center; width: 100px;" class="">公众账号</div>-->

						<!--</th>-->

						<th align="center" abbr="article_show" axis="col5" class="">

							<div style="text-align: center; width: 100px;" class="">商户号</div>

						</th>

						<th align="center" abbr="article_time" axis="col6" class="">

							<div style="text-align: center; width: 235px;" class="">微信订单号</div>

						</th>

						<th align="center" abbr="article_time" axis="col6" class="">

							<div style="text-align: center; width: 215px;" class="">商户订单号</div>

						</th>

						<!--<th align="center" abbr="article_time" axis="col7" class="">-->

							<!--<div style="text-align: center; width: 100px;" class="">用户标识</div>-->

						<!--</th>-->

						<!--<th align="center" abbr="article_time" axis="col8" class="">-->

							<!--<div style="text-align: center; width: 100px;" class="">交易类型</div>-->

						<!--</th>-->

						<th align="center" abbr="article_time" axis="col9" class="">

							<div style="text-align: center; width: 100px;" class="">交易状态</div>

						</th>

						<th align="center" abbr="article_time" axis="col10" class="">

							<div style="text-align: center; width: 100px;" class="">付款银行</div>

						</th>

						<th align="center" abbr="article_time" axis="col11" class="">

							<div style="text-align: center; width: 100px;" class="">货币种类</div>

						</th>

						<th align="center" abbr="article_time" axis="col12" class="">

							<div style="text-align: center; width: 100px;" class="">总金额</div>

						</th>

						<th align="center" abbr="article_time" axis="col13" class="">

							<div style="text-align: center; width: 100px;" class="">商品名称</div>

						</th>

						<th align="center" abbr="article_time" axis="col14" class="">

							<div style="text-align: center; width: 100px;" class="">商户数据包</div>

						</th>

						<th align="center" abbr="article_time" axis="col15" class="">

							<div style="text-align: center; width: 100px;" class="">手续费</div>

						</th>

						<th align="center" abbr="article_time" axis="col16" class="">

							<div style="text-align: center; width: 100px;" class="">费率</div>

						</th>

						<th style="width:100%" axis="col7">

							<div></div>

						</th>

					</tr>

					</thead>

				</table>

			</div>

		</div>

		<div class="bDiv" style="height: auto;">

			<div id="flexigrid" cellpadding="0" cellspacing="0" border="0">

				<table>

					<tbody>

					<if condition="$data neq 'null'">

						<foreach name="data" item="vo" key="k" >

							<tr>

								<td class="sign">

									<div style="width: 24px;"><i class="ico-check"></i></div>

								</td>

								<td align="center" class="">

									<div style="text-align: center; width: 120px;">{$vo.tradetime}</div>

								</td>

								<!--<td align="center" class="">-->

									<!--<div style="text-align: center; width: 100px;">{$vo.ghid}</div>-->

								<!--</td>-->

								<td align="center" class="">

									<div style="text-align: center; width: 100px;">{$vo.mchid}</div>

								</td>

								<td align="center" class="">

									<div style="text-align: center; width: 235px;">{$vo.wxorder}</div>

								</td>

								<td align="center" class="">

									<div style="text-align: center; width: 215px;">{$vo.bzorder}</div>

								</td>

								<!--<td align="center" class="">-->

									<!--<div style="text-align: center; width: 100px;">{$vo.openid}</div>-->

								<!--</td>-->

								<!--<td align="center" class="">-->

									<!--<div style="text-align: center; width: 100px;">{$vo.tradetype}</div>-->

								<!--</td>-->

								<td align="center" class="">

									<div style="text-align: center; width: 100px;">{$vo.tradestatus}</div>

								</td>

								<td align="center" class="">

									<div style="text-align: center; width: 100px;">{$vo.bank}</div>

								</td>

								<td align="center" class="">

									<div style="text-align: center; width: 100px;">{$vo.currency}</div>

								</td>

								<td align="center" class="">

									<div style="text-align: center; width: 100px;">{$vo.totalmoney}</div>

								</td>

								<td align="center" class="">

									<div style="text-align: center; width: 100px;">{$vo.commodityname}</div>

								</td>

								<td align="center" class="">

									<div style="text-align: center; width: 100px;">{$vo.datapacket}</div>

								</td>

								<td align="center" class="">

									<div style="text-align: center; width: 100px;">{$vo.fee}</div>

								</td>

								<td align="center" class="">

									<div style="text-align: center; width: 100px;">{$vo.rate}</div>

								</td>

								<td align="" class="" style="width: 100%;">

									<div>&nbsp;</div>

								</td>

							</tr>

						</foreach>

						<else/>
						<td align="center" class="">

							<div style="text-align: center; width: 100px;">	当天没有交易记录！</div>

						</td>

					</if>
					</tbody>

				</table>

			</div>

			<div class="iDiv" style="display: none;"></div>

		</div>

		<!--分页位置-->

		{$page}
	</div>
	</div>

</div>

<script type="text/javascript">

	$('#start_time').layDate(
			{
				format:'YYYY-MM-DD',
				istoday: true,
				start:laydate.now(0),
				min: '1970-01-01',
				max: '2099-12-31',
			});

</script>

</body>

</html>